import { Provide, Inject, Get } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { BaseSysCategoryService } from '../../service/sys/category';

@Provide()
@CoolController()
export class BaseProviderCategoryController extends BaseController {
    @Inject()
    baseSysCategoryService: BaseSysCategoryService;

    @Get('/list', { summary: '瓷片区类目列表' })
    async getList() {
        return this.ok(await this.baseSysCategoryService.getList());
    }
}